<?php /* Smarty version 2.6.13, created on 2013-11-28 22:04:20
         compiled from Index/index.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'mb_substr', 'Index/index.html', 91, false),)), $this); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Coming Eating</title>
<link rel="shortcut icon" href="Tpl/hotel.ico"/>
<!-- href属性中的路径要相对主文件定位，否则会加载不到 -->
<link rel="stylesheet" type="text/css" href="Public/Css/Base.css"/>
<link rel="stylesheet" type="text/css" href="Public/Css/index.css"/>
<link rel="stylesheet" type="text/css" href="Public/Css/position.css"/>
<link rel="stylesheet" type="text/css" href="Public/Css/nav.css"/>

<script type="text/javascript" src="Public/Js/jquery.js"></script>
<script type="text/javascript" src="Public/Js/main.js"></script>
<script type="text/javascript" src="Public/Js/lightbox.min.js"></script>
<script type="text/javascript">
		$(document).ready(function() {
			$('#main_nav').allenMenu();
			$('#slide').allenSlide();
			$('a[name=need_lightbox]').lightBox();
		});
		
		function showCard(cp_id){
			if($("[name='"+cp_id+"']").css("display") == "none"){
				
				$("[name='"+cp_id+"']").show("fast");
			}
			else{
				
				$("[name='"+cp_id+"']").hide("fast");
			}
			
		}
</script>

</head>
<body >

<!-- 这个地方用一个标志  确定是否显示这个 -->
<?php if ($_SESSION['loginFlag'] == 0): ?>
	
	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'Public/hide.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php endif; ?>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'Public/indexheader.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'Public/search.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<div id="center" class="clear">
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'Public/position.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
	<div id="left">
		<div class="leftUp">
			<h2>交易记录<span style="float:right;margin-right:10px;margin-top:2px;"><a href="">更多&gt;&gt;</a></span></h2>
			<div class="news">
				<ul>
					<li><img id="newsImg" src="Public/Images/number/1.jpg"/>交易记录1<span class="time">2013-09-09</span></li>
					<li><img id="newsImg" src="Public/Images/number/2.jpg"/>交易记录1<span class="time">2013-09-09</span></li>
					<li><img id="newsImg" src="Public/Images/number/3.jpg"/>交易记录1<span class="time">2013-09-09</span></li>
					<li><img id="newsImg" src="Public/Images/number/4.jpg"/>交易记录1<span class="time">2013-09-09</span></li>
					<li><img id="newsImg" src="Public/Images/number/5.jpg"/>交易记录1<span class="time">2013-09-09</span></li>
					<li><img id="newsImg" src="Public/Images/number/6.jpg"/>交易记录1<span class="time">2013-09-09</span></li>
					<li><img id="newsImg" src="Public/Images/number/7.jpg"/>交易记录1<span class="time">2013-09-09</span></li>
					<li><img id="newsImg" src="Public/Images/number/8.jpg"/>交易记录1<span class="time">2013-09-09</span></li>
				</ul>
			</div>
		</div>
		<div id="GoodOne">
			<h2>热卖推荐<span style="float:right;margin-right:10px;margin-top:2px;"><a href="">更多&gt;&gt;</a></span></h2>
			<div>
						<?php $_from = $this->_tpl_vars['goodRes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['goodV']):
?>
				<div id="GoodOneCard">
					<a href='FoodDetail.php?food_id=<?php echo $this->_tpl_vars['goodV']['food_id']; ?>
'><img src='Admin/Upload/<?php echo $this->_tpl_vars['goodV']['food_pic']; ?>
' alt="<?php echo $this->_tpl_vars['goodV']['food_name']; ?>
" title="<?php echo $this->_tpl_vars['goodV']['food_name']; ?>
"/></a>
					<div>商品名：<a href='FoodDetail.php?food_id=<?php echo $this->_tpl_vars['goodV']['food_id']; ?>
'><?php echo $this->_tpl_vars['goodV']['food_name']; ?>
</a><br/>
						价&nbsp;&nbsp;格：<?php echo $this->_tpl_vars['goodV']['food_singleprice']; ?>
  	<br/>
						会员价：<?php echo $this->_tpl_vars['goodV']['food_userprice']; ?>

					</div>
				</div>
			<?php endforeach; endif; unset($_from); ?>		
				

			</div>
		</div>
		<div class="leftRight">
		
			<h2>合作联盟<span style="float:right;margin-right:10px;margin-top:2px;"><a href=""><a href='JoinCp.php?cp_id=1'>更多详情&gt;&gt;</a></a></span></h2>
			<div class="info">
				<ul>
				<?php $_from = $this->_tpl_vars['joinData']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['v']):
?>
					<li onclick="showCard('<?php echo $this->_tpl_vars['v']['cp_id']; ?>
');"><img  src="Public/images/off.gif" /><?php echo $this->_tpl_vars['v']['cp_name']; ?>
</li>
					<div id="infocard"  name="<?php echo $this->_tpl_vars['v']['cp_id']; ?>
">
						<?php echo ((is_array($_tmp=$this->_tpl_vars['v']['cp_domain'])) ? $this->_run_mod_handler('mb_substr', true, $_tmp, 0, 13, 'utf-8') : mb_substr($_tmp, 0, 13, 'utf-8')); ?>
...<br/>
						公司电话：<?php echo $this->_tpl_vars['v']['cp_phone']; ?>
<br/>
						联系人：<?php echo $this->_tpl_vars['v']['cp_linkman']; ?>
<br/>
						联系电话：<?php echo $this->_tpl_vars['v']['cp_linkphone']; ?>
<br/>
					</div>
				<?php endforeach; else: ?>
					<li>暂时没有合作加盟的信息</li>
				<?php endif; unset($_from); ?>
				</ul>
			</div>
		</div>
		<div class="leftCenter">
			<?php $_from = $this->_tpl_vars['advData']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['v']):
?>
				<?php if ($this->_tpl_vars['v']['adv_position'] == '1'): ?>
				<a href="<?php echo $this->_tpl_vars['v']['adv_link']; ?>
"><img alt="<?php echo $this->_tpl_vars['v']['adv_name']; ?>
" src="Admin/Upload/adv/<?php echo $this->_tpl_vars['v']['adv_pic']; ?>
" title="<?php echo $this->_tpl_vars['v']['adv_name']; ?>
"/></a>
				<?php endif; ?>
			<?php endforeach; else: ?>
				暂时没有此处的广告
			<?php endif; unset($_from); ?>
		</div>
	</div>
	<div id="right" class='clear'>
		<!-- 	/* 佳味菜肴start */ -->
		<div class="rtsp clear" >
		<h2>佳味菜肴<span style="float:right;margin-right:10px;font-size:13px;"><a href="MenuList.php">更多&gt;&gt;</a></span></h2>
			<ul>
			<?php $_from = $this->_tpl_vars['menuData']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['menuv']):
?>
				<li><a href="MenuDetail.php?menu_id=<?php echo $this->_tpl_vars['menuv']['menu_id']; ?>
"><img src="Admin/Upload/<?php echo $this->_tpl_vars['menuv']['menu_pic']; ?>
" alt='<?php echo $this->_tpl_vars['menuv']['menu_name']; ?>
' title='<?php echo $this->_tpl_vars['menuv']['menu_name']; ?>
'/></a><center><a href="MenuDetail.php?menu_id=<?php echo $this->_tpl_vars['menuv']['menu_id']; ?>
"><?php echo $this->_tpl_vars['menuv']['menu_name']; ?>
</a></center></li>
			<?php endforeach; else: ?>
				<li>暂时没有菜谱的记录信息</li>
			<?php endif; unset($_from); ?>
			</ul>
		</div>
		<!-- 	/* 佳味菜肴end */ -->
		
		<!-- 	/* 儿童食品start */ -->
		<div class="rtsp clear">
		<h2>儿童食品 <span style="float:right;margin-right:10px;font-size:13px;"><a href="FoodList.php?flag=3">更多&gt;&gt;</a></span></h2>
			<ul>
				<?php $_from = $this->_tpl_vars['chirldRes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['chirldv']):
?>
				<li><a href="FoodDetail.php?food_id=<?php echo $this->_tpl_vars['chirldv']['food_id']; ?>
"><img  src="Admin/Upload/<?php echo $this->_tpl_vars['chirldv']['food_pic']; ?>
" alt="<?php echo $this->_tpl_vars['chirldv']['food_name']; ?>
" title="<?php echo $this->_tpl_vars['chirldv']['food_name']; ?>
"/></a><center><a href="FoodDetail.php?food_id=<?php echo $this->_tpl_vars['chirldv']['food_id']; ?>
"><?php echo $this->_tpl_vars['chirldv']['food_name']; ?>
</a></center></li>
				<?php endforeach; else: ?>
				<li>暂时没有儿童系列的食品展示</li>
				<?php endif; unset($_from); ?>
			</ul>
		</div>
		<!-- 	/* 儿童食品end */ -->
		
		<!-- 	/* 节令食品start */ -->
		<div class="rtsp clear">
		<h2>节令食品 <span style="float:right;margin-right:10px;font-size:13px;"><a href="FoodList.php?flag=1">更多&gt;&gt;</a></span></h2>
			<ul>
				<?php $_from = $this->_tpl_vars['dayRes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['dayv']):
?>
				<li><a href="FoodDetail.php?food_id=<?php echo $this->_tpl_vars['dayv']['food_id']; ?>
"><img  src="Admin/Upload/<?php echo $this->_tpl_vars['dayv']['food_pic']; ?>
" alt="<?php echo $this->_tpl_vars['dayv']['food_name']; ?>
" title="<?php echo $this->_tpl_vars['dayv']['food_name']; ?>
"/></a><center><a href="FoodDetail.php?food_id=<?php echo $this->_tpl_vars['dayv']['food_id']; ?>
"><?php echo $this->_tpl_vars['dayv']['food_name']; ?>
</a></center></li>
				<?php endforeach; else: ?>
				<li>暂时没有节令系列的食品展示</li>
				<?php endif; unset($_from); ?>
			</ul>
		</div>
		<!-- 	/* 节令食品end */ -->
		
		
			<!-- 	/* 四季食品start */ -->
		<div class="rtsp clear">
		<h2>四季食品<span style="float:right;margin-right:10px;font-size:13px;"><a href="FoodList.php?flag=2">更多&gt;&gt;</a></span></h2>
			<ul>
				<?php $_from = $this->_tpl_vars['seasonRes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['seasonv']):
?>
				<li><a href="FoodDetail.php?food_id=<?php echo $this->_tpl_vars['seasonv']['food_id']; ?>
"><img  src="Admin/Upload/<?php echo $this->_tpl_vars['seasonv']['food_pic']; ?>
" alt="<?php echo $this->_tpl_vars['seasonv']['food_name']; ?>
" title="<?php echo $this->_tpl_vars['seasonv']['food_name']; ?>
"/></a><center><a href="FoodDetail.php?food_id=<?php echo $this->_tpl_vars['seasonv']['food_id']; ?>
"><?php echo $this->_tpl_vars['seasonv']['food_name']; ?>
</a></center></li>
				<?php endforeach; else: ?>
				<li>暂时没有四季系列的食品展示</li>
				<?php endif; unset($_from); ?>
			</ul>
		</div>
		<!-- 	/* 四季食品end */ -->
	</div>

<!-- 	<div style="clear:both;"></div> -->
</div>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'Public/footer.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</body>
</html>